<!--
 * @Author: your name
 * @Date: 2021-06-27 13:52:03
 * @LastEditTime: 2021-06-27 17:05:26
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \6.26作业\app\src\App.vue
-->
<template>
  <div id="app">
    <div class="main">
      <router-view></router-view>
    </div>
    <div class="footer">
      <div v-for="(item,idx) in footerList" :key="idx">
      <router-link :to="item.path">
        <dl>
          <dd>{{item.name}}</dd>
        </dl>
      </router-link>
    </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "app",
  data(){
    return {
      footerList:[
        {
          path:"/",
          name:"首页"
        },
        {
          path:"/login",
          name:"登录"
        }
      ]
    }
  }
};
</script>
<style lang="scss">
html,body,#app{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
*{
  margin: 0;
  padding: 0;
  list-style: none;
}
.main{
  width: 100%;
  height: 100%;
  flex: 1;
  overflow-y: scroll;
}
.footer{
  height: 50px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  align-items: center;
}
</style>
